From: Jonas Dreßler Date: Thu, 8 Aug 2019 16:15:32 +0000 (+0200) Subject: appDisplay: Animate activate-discrete-gpu action in the AppIconMenu X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~839^2^2~14 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=87f5aa7a13f48dc9efb02b0d3b29af2680d2c2aa;p=gnome-shell.git appDisplay: Animate activate-discrete-gpu action in the AppIconMenu Just as we animate the apps launch using the zoom out animation if the 'new-window' action provided by the app is launched, we should also show this animation if the 'activate-discrete-gpu' action provided by the app via its AppInfo is launched. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/673 --- diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index dbb112104..d028e4cdb 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -2056,7 +2056,8 @@ var AppIconMenu = class AppIconMenu extends PopupMenu.PopupMenu { let action = actions[i]; let item = this._appendMenuItem(appInfo.get_action_name(action)); item.connect('activate', (emitter, event) => { - if (action == 'new-window') + if (action == 'new-window' || + action == 'activate-discrete-gpu') this._source.animateLaunch(); this._source.app.launch_action(action, event.get_time(), -1);